Skip to content

feat(web): release-centric overview, diff fold, polish#53

Merged
Gsbreddy merged 6 commits intomainfrom
cursor/ui-roadmap-p0-3ca2
May 5, 2026
Merged

feat(web): release-centric overview, diff fold, polish#53
Gsbreddy merged 6 commits intomainfrom
cursor/ui-roadmap-p0-3ca2

Conversation

@Gsbreddy
Copy link
Copy Markdown
Collaborator

@Gsbreddy Gsbreddy commented May 4, 2026

Summary

Addresses strict review feedback for the Serve UI work:

  • CopyTextButton: Clears pending timeouts on unmount and avoids calling setStatus after unmount; when navigator.clipboard.writeText throws (common in headless Chromium), falls back to document.execCommand('copy') so operators and e2e see a reliable Copied state.
  • Tests: Adds web/e2e/diff-ui.spec.ts for overview copy, mocked POST /v1/diff PASS/FAIL (policy panel, blocked strip, promote CTA), and pricing expand (including data-testid="diff-per-1k-prices-title").
  • Diff page structure: Splits diff UI into web/src/components/diff/* and fixes pricing fold reliability by owning expand state inside DiffPricingExpand and resetting it via pricingResetKey / diffResultSeq when a new diff completes.

Static bundle under src/flightdeck/server/static/ rebuilt and committed.

Verification

  • uv run python -m ruff check src tests
  • uv run python -m pytest
  • uv run flightdeck-quickstart-verify
  • cd web && npm ci && npm run build && npm run test:e2e
Open in Web Open in Cursor 

cursoragent and others added 3 commits May 4, 2026 14:10
Document phased UI goals in docs/ui-roadmap.md. Overview gains a focused-release hero (?release=), row shortcuts to Diff/Runs/Promote with query params, and promoted baseline hints. Diff/Runs/Actions read URL search params; Diff syncs params on compute and shows a prominent policy verdict banner plus link to Promote. E2e script defaults to python3 with FLIGHTDECK_E2E_PYTHON override; extend smoke tests for deep links.

Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
Captures adopted principles, merged IA, deferred backend-gated items, and evaluation-scoped policy terminology from product blueprint review.

Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
Collapse ledger metrics behind toggle; reorder Overview (promoted first)
with Live badges, release filters, and copy-to-clipboard. Diff page puts
samples and rollups before collapsible pricing detail. Infra-style polish:
solid primary buttons, subtler table hover, page intros with decision litmus.
Update roadmap Phase 1–2 status; refresh static bundle and e2e for metrics toggle.

Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
@cursor cursor Bot changed the title UI roadmap doc and P0 release-centric serve UX UI roadmap P0–P2: release-centric overview, diff fold, polish May 4, 2026
cursoragent and others added 3 commits May 4, 2026 15:59
Maps change→impact→policy→decision stack to current serve UI, suggested
components, illustrative vs actual data contracts, and non-goals.

Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
Add OLD vs NEW release twin with env/window context and resolved model line,
blocked strip for first policy failure, compact verdict strip, Policy
evaluation card with Badge, Decision card with promote CTA on PASS, and
rename impact fold to Change impact. Styles + roadmap wireframe note.

Rebuild checked-in static bundle.

Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
Fallback to execCommand when Clipboard API rejects (headless Chrome).
Own DiffPricingExpand open state with a per-result reset key so the fold
opens reliably after Compute diff. Add Playwright coverage for copy,
mocked diff PASS/FAIL, and pricing expand; rebuild committed static bundle.

Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
@Gsbreddy Gsbreddy marked this pull request as ready for review May 5, 2026 11:22
@Gsbreddy Gsbreddy changed the title UI roadmap P0–P2: release-centric overview, diff fold, polish feat(web): release-centric overview, diff fold, polish May 5, 2026
@Gsbreddy Gsbreddy merged commit 39c8c98 into main May 5, 2026
3 checks passed
@Gsbreddy Gsbreddy deleted the cursor/ui-roadmap-p0-3ca2 branch May 5, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants